import request from '@/utils/request'

// 提交评分任务
export const submitTask = (formData: FormData) => {
  return request({
    url: '/scoring/submit',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 获取评分任务列表
export const getTaskList = (params: {
  page?: number
  pageSize?: number
  patient_code?: string
  status?: number
}) => {
  return request({
    url: '/scoring/list',
    method: 'post',
    data: params
  })
}

// 获取单个评分结果
export const getTaskResult = (params: { task_id: number }) => {
  return request({
    url: '/scoring/result',
    method: 'post',
    data: params
  })
}